// 缓存数据
export const state = {
  //   机器状态数据
  Status_Lamp: null,
  // 送料机状态数据
  Feeder_State: {
    id: 101,
    name: "三合一送料机",
    img: require("../../assets/images/feed.png"),
    class: "feed",
    hint: {
      error: "",
      maintain: "",
      instruct: "",
    },
    // 显示提示
    isactive: false,
  },
  // 换模车状态数据
  DieChange_State: [
    {
      id: 701,
      name: "1号",
      img: require("../../assets/images/direct01.png"),
      class: "direct-01",
      hint: {
        error: "",
        change1: "",
        change2: "",
        change3: "",
        change4: "",
        change5: "",
      },
      isactive: false,
      // 节流参数
      isErr: null,
      isChangeA: null,
      isChangeB: null,
      isChangeC: null,
      isChangeD: null,
      isChangeE: null,
      isChangeA_active: null,
      isChangeB_active: null,
      isChangeC_active: null,
      isChangeD_active: null,
      isChangeE_active: null,
    },
  ],
  // 过度传输带
  Conveyor_State: [
    {
      id: 501,
      name: "1号",
      img: require("../../assets/images/feed03.png"),
      class: "conveyor-stop conveyor-stop-01",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 502,
      name: "1号",
      img: require("../../assets/images/feed03.png"),
      class: "conveyor-stop conveyor-stop-02",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 503,
      name: "1号",
      img: require("../../assets/images/feed03.png"),
      class: "conveyor-stop conveyor-stop-03",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 504,
      name: "1号",
      img: require("../../assets/images/feed03.png"),
      class: "conveyor-stop conveyor-stop-04",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 505,
      name: "1号",
      img: require("../../assets/images/feed03.png"),
      class: "conveyor-stop conveyor-stop-05",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
  ],
  // 夹具小车z状态数据
  Fixture_State: [
    {
      id: 401,
      name: "1号换具小车",
      img: require("../../assets/images/Inmost-01.png"),
      class: "lnmost-01",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },

    {
      id: 402,
      name: "2号换具小车",
      img: require("../../assets/images/Inmost-01.png"),
      class: "lnmost-02",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 403,
      name: "3号换具小车",
      img: require("../../assets/images/Inmost-01.png"),
      class: "lnmost-03",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 404,
      name: "4号换具小车",
      img: require("../../assets/images/Inmost-01.png"),
      class: "lnmost-04",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
    {
      id: 405,
      name: "5号换具小车",
      img: require("../../assets/images/Inmost-01.png"),
      class: "lnmost-05",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      isactive: false,
    },
  ],

  // 冲床状态数据
  Punch_State: [
    {
      id: 301,
      name: "1号冲床",
      img: require("../../assets/images/machine01.png"),
      class: "machine-01",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      // 是否显示提示
      isactive: false,
      isStart: false,
      isAlarm: false,
    },

    {
      id: 302,
      name: "2号冲床",
      img: require("../../assets/images/machine01.png"),
      class: "machine-02",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      // 是否显示提示
      isactive: false,
      isStart: false,
      isAlarm: false,
    },

    {
      id: 303,
      name: "3号冲床",
      img: require("../../assets/images/machine01.png"),
      class: "machine-03",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      // 是否显示提示
      isactive: false,
      isStart: false,
      isAlarm: false,
    },

    {
      id: 304,
      name: "4号冲床",
      img: require("../../assets/images/machine01.png"),
      class: "machine-04",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      // 是否显示提示
      isactive: false,
      isStart: false,
      isAlarm: false,
    },

    {
      id: 305,
      name: "5号冲床",
      img: require("../../assets/images/machine01.png"),
      class: "machine-05",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
      },
      // 是否显示提示
      isactive: false,
      isStart: false,
      isAlarm: false,
    },
  ],
// 变化值
  ToRender:[],
  // 机器人数据状态
  Robot_State: [
    {
      id: 201,
      name: "1号机器人",
      img: require("../../assets/images/robot01.gif"),
      class: "robot-01",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
        status: "",
        signal: "",

        stuff: "",
      },
      isactive: false,
      start: false,
    },

    {
      id: 202,
      name: "2号机器人",
      img: require("../../assets/images/robot01.gif"),
      class: "robot-02",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
        status: "",
        signal: "",
      },
      isactive: false,
      start: false,
    },
    {
      id: 203,
      name: "3号机器人",
      img: require("../../assets/images/robot01.gif"),
      class: "robot-03",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
        status: "",
        signal: "",
      },
      isactive: false,
      start: false,
    },
    {
      id: 204,
      name: "4号机器人",
      img: require("../../assets/images/robot01.gif"),
      class: "robot-04",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
        status: "",
        signal: "",
      },
      isactive: false,
      start: false,
    },
    {
      id: 205,
      name: "5号机器人",
      img: require("../../assets/images/robot01.gif"),
      class: "robot-05",
      hint: {
        error: "",
        maintain: "",
        instruct: "",
        status: "",
        signal: "",
      },
      isactive: false,
      start: false,
    },
  ],

  // 产量计算
  Yield_State: null,

  // 状态数据图表数据
  RunningChart_State: {
    xAxis: {
      type: "category",
      axisTick: {
        show: false,
      },
      axisLabel: {
        color: "#fff",
        align: "right",
      },
      // boundaryGap: false,
      data:[

      ]
    },
    yAxis: [
      {
        inverse: true,
        type: "category",
        axisLabel: {
          color: "#fff",
          align: "right",
        },
        splitLine: {
          show: false,
        },
        axisTick: {
          show: false,
        },
        axisLine: {
          show: false,
        },
        data: [
          "无料",
          "送料",
          "空闲",
          "冲压",
          "空闲",
          "冲压",
          "空闲",
          "冲压",
          "空闲",
          "冲压",
          "空闲",
          "冲压",
          "空闲",
          "放料",
          "空闲",
          "放料",
          "空闲",
          "放料",
          "空闲",
          "放料",
          "空闲",
          "放料",
        ],
      },
      {
        inverse: true,
        type: "category",
        axisLabel: {
          color: "#fff",
          align: "right",
        },
        splitLine: {
          show: false,
        },
        axisTick: {
          show: false,
        },
        axisLine: {
          show: false,
        },
        data: [
          "三合一送料机",
          "冲床1",
          "冲床2",
          "冲床3",
          "冲床4",
          "冲床5",
          "机器人1",
          "机器人2",
          "机器人3",
          "机器人4",
          "机器人5",
        ],
      },
    ],
    series: [
      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },

      {
        type: "line",
        step: "start",
        data: [],
      },
    ],
  },
  ErrorListing: [],
  
   boardState:{
    //  生产总数
    project:0,
    // 完成数量
    achieve:0,
    // 平均当时
   }
 

};
